<?php 
/* SVN FILE: $Id: default.ctp 69 2007-12-09 22:18:51Z joe.vasquez $ */
/**
 * default layout
 * @filesource
 * @author			Joe Vasquez <joe.vasquez@gmail.com>
 * @copyright		Copyright (c) 2007, Joe Vasquez
 * @package			redlettr
 * @subpackage		layouts
 * @since			0.1A
 * @version			0.1A  $Rev: 69 $
 * @lastmodified	$Date: 2007-12-09 22:18:51 +0000 (Sun, 09 Dec 2007) $
 * @license			http://www.opensource.org/licenses/mit-license.php The MIT License
 */
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" 
      "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/ html;charset=utf-8" />
<title>RedLettr :: <?php echo $title_for_layout; ?></title>
<?php if(isset($html)): ?>
<?php echo $html->css('blueprint/screen',null,array('media' => 'screen, projection'))."\n"; ?>
<?php echo $html->css('blueprint/print',null,array('media' => 'print'))."\n"; ?>
<!--[if IE]><?php echo $html->css('blueprint/lib/ie.css',null,array('media' => 'screen, projection'))."\n"; ?><![endif]-->
<?php echo $html->css('default',null,array('media' => 'all'))."\n"; ?>
	<?php if(isset($styles)): ?>
		<?php foreach($styles as $style): ?>
<?php echo $html->css($style)."\n"; ?>		
		<?php endforeach; ?>
	<?php endif; ?>	
<?php endif; ?>
<?php if(isset($javascript)): ?>
<?php echo $javascript->link('jquery')."\n"; ?>
<?php echo $javascript->link('jquery.color.js')."\n"; ?>
	<?php if(isset($scripts)): ?>
		<?php foreach($scripts as $script): ?>
<?php echo $javascript->link($script)."\n"; ?>		
		<?php endforeach; ?>
	<?php endif; ?>
<?php endif; ?>
</head>
<body>
<!-- begin container -->
<div class="container">
	<!-- begin header -->
	<div class="header"><h1>RedLettr</h1></div>
	<!-- end header -->
	<!-- begin left-body -->
	<div class="column span-16 first left-body">
		<?php if(isset($crumbsList)): ?>
			<!-- begin crumbs -->
			<div class="crumbs">
				<?php echo $this->renderElement('crumbs',array('crumbsList' => $crumbsList)); ?>
			</div>
			<!-- end crumbs -->
		<?php endif; ?>
		<!-- begin messages -->
		<span class="messages"><?php $session->flash(); ?></span>
		<!-- end messages -->
		<!-- begin content -->
		<div class="content">
			<?php echo $content_for_layout; ?>
		</div>
		<!-- end content -->
	</div>
	<!-- end left-body -->
	<!-- begin right-body "menus" -->
	<div class="column span-8 last menus">
		<?php if(isset($menus)): ?>
			<?php foreach($menus as $menuName => $menuData): ?>
				<!-- begin single menu box -->
				<div class="menu box">		
					<?php echo $this->renderElement('menu',array('name' => $menuName, 'actions' => $menuData)); ?>
				</div>
				<!-- end single menu box -->
			<?php endforeach; ?>
		<?php endif; ?>
	</div>
	<!-- end right-body "menus" -->
	<!-- begin footer -->
	<div class="column span-24 last border-top footer">
		<div class="column span-21 first">
			<p>redlettr <strong><em>pre</em></strong>-alpha 0.1</p>
		</div>
		<div class="column span-3 last">
		<?php echo $html->image('cake.power.gif',array(
			'alt' 		=> 'Cake Power',
			'height'	=> '13',
			'width'		=> '98',
		)); ?>
		</div>		
	<!-- end footer -->
	</div>
</div>
<!-- end container -->	
<script type="text/javascript">
$(document).ready(function(){
	if($('.message').html() != '')
	{
		$('.message').animate({backgroundColor: 'white'}, 3000);
	}
});
</script>
</body>
</html>